package com.tianjin.design.state;

public class WorkContext {

	private IWorkState state;
	public WorkContext() {
		state = new UrgentWorkState();
	}
	public void setState(IWorkState state) {
		this.state = state;
	}
	public IWorkState getState() {
		return state;
	}
	
	private Integer thing;
	public void setThing(Integer thing) {
		this.thing = thing;
	}
	public Integer getThing() {
		return thing;
	}
	
	public void work() {
		state.handle(this);
	}
}
